import type { RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw[] = [{
  path: '/system',
  component: Layout,
  redirect: '/system/resource',
  name: 'system',
  meta: {
    title: '资源权限',
    icon: 'i-heroicons-solid:menu-alt-3',
  },
  children: [
    {
      path: 'resource',
      name: 'resource',
      component: () => import('@/views/system/resource/index.vue'),
      meta: {
        title: '资源管理',
      },
    },
  ],
}]

export default routes
